package com.xxyf;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author 小小怡飞
 * @Date 2022/12/14 13:12
 * @Version JDK 8
 */

@SpringBootApplication
//开启事务
@EnableTransactionManagement
@MapperScan("com.xxyf.mapper")
//开启异步
@EnableAsync
//开启定时任务
@EnableScheduling
public class SprigBootApption {

    public static void main(String[] args) {
        SpringApplication.run(SprigBootApption.class,args);
    }
}
